package com.allwees.bs.c.module.sys.entity;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;

/**
 * @author yangylsky
 * @since 2019-09-07
 */
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
@Entity
@Table(name = "res_region")
public class RegionEntity implements Serializable {
    @Id
    private Integer id;

    private Integer countryId;

    private Integer provinceId;

    private Integer cityId;

    /**
     * 简体中文名称
     */
    private String regionNameZhHans;

    /**
     * 繁体中文名称
     */
    private String regionNameZhHant;

    private String regionNameEn;

    @Column(length = 2)
    private String iso3166;

    @Column(length = 10)
    private String zipcode;
}
